Re: [GENERAL] Fast join - Mailing list pgsql-general

From Herouth Maoz
Subject Re: [GENERAL] Fast join
Date
Msg-id l03130302b39e9bdfbcf8@[147.233.159.109]
Whole thread Raw
In response to Re: [GENERAL] Fast join  (Leon <leon@udmnet.ru>)
List pgsql-general
At 18:33 +0300 on 29/06/1999, Leon wrote:


> adb=>  EXPLAIN  SELECT COUNT(*) FROM atable WHERE atable.cfield =
>btable.cfield
> AND atable.afield<10;
...
>
> adb=>  EXPLAIN  SELECT COUNT(*) FROM atable WHERE atable.cfield =
>btable.cfield
> AND atable.afield>100;

Hey, shouldn't these be:

SELECT COUNT(*)
FROM atable, btable  <----- Note this!
WHERE atable.cfield = btable.cfield
AND ....

I'm not sure that when the other table is implicit, the optimizer checks
the statistics of the btable on time.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma



pgsql-general by date:

Previous
From: Leon
Date:
Subject: Re: [GENERAL] Fast join
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] Fast join